#include "mainwindow.h"

#include <QApplication>
// #include "stream/demux.h"
#include <QDebug>
// #include "stream/demuxthread.h"
#include "new/demuxthread.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    const char* url = "rtsp://admin:admin123@192.168.10.108/cam/realmonitor?channel=1&subtype=0";

    // DemuxMedia demuxMedia;
    // demuxMedia.openMediaStream(url);
    wxb::DemuxThread thread;

    url = "rtmp://mobliestream.c3tv.com:554/live/goodtv.sdp";
    thread.open(url);
    thread.startAll();

    // DemuxThread dt;
    // bool ret = dt.open(url);
    // if(ret)
    // {
        // dt.start_all_thread();
    // }
    // MainWindow w;
    // w.show();

    // qDebug() <<"好好";
    // return 0;
    return a.exec();
}
